

define(function(require,exports,module){

	function Main(jqObj,loadParams){

	var columns = [[
		{field:'apkVersion',title:'版本号码',editor:{required:true}},
		{field:'apkPath',title:'apk文件路径,相对于tomcat根目录',editor:{required:true}},
		{field:'apkType',title:'apk类型:1手机2平板',editor:{required:true}},
		{field:'apkDesc',title:'升级内容描述',editor:{required:true}},
		{field:'apkId',title:'主键',hidden:true},
		{field:'apkRemark',title:'备注',editor:{}},
		{field:'apkName',title:'apk名称',editor:{required:true}}
	]];
	var formDialog = {
		title:'',
		height:350,
		formEx:{
			url:'sys/fireapk/save.do'
		}
	}

	var MainUI = {
		eName:'datagrid',
		idField:'apkId',
		url:'sys/fireapk/json.do',
		delUrl:'sys/fireapk/del.do',
		columns:columns,
		formDialog:formDialog
	}

	jqObj.createUI(MainUI);

}
	module.exports = Main;

});
